<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
</html>
<?php
	//讀取profile_controller.php
	require('../Controller/profile_controller.php');
	//讀取post
	$id = $_POST["id"];
	$new_file = $_FILES["upfile"];
	$control = new Profile_Controller();
	$control->profileEditPic($id, $new_file);
	header("location:profile.php?id=$id");
?>